package com.qfedu.edu.utils;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author xiaobobo
 * @title: ThreaPoolUtils
 * @projectName cd-fy-2401-third-project-parent
 * @description: 这个是咋们的线程池的工具类
 * @date 2024/9/23  14:19
 */
public class ThreadPoolUtils {

    //这个是异常通知的这个线程池
    private static ThreadPoolExecutor exceptionNotifyThreadPool = new ThreadPoolExecutor(
            10, 100, 10, TimeUnit.SECONDS, new ArrayBlockingQueue<>(8192)
    );

    public static ThreadPoolExecutor getExceptionNotifyThreadPool() {
        return exceptionNotifyThreadPool;
    }
}
